{% extends "base.html" %}
{% block title %}{{page_title}}{% endblock %}
{% block content%}

<div class="banfei_log">
<p>班费余额:<em>{{banfei}}</em>{% if perms.moral.can_manage_banfei %}
(<a href="/change_banfei.html">管理</a>)
{% endif %}</p>
<p>(数据每分钟更新一次)</p>

<table id="thetable">
<thead> 
  <tr>
    <th scope="col"><a href="#">日期</a></th>
    <th scope="col"><a href="#">金额</a></th>
    <th scope="col">项目</th>
    <th scope="col"><a href="#">经办人</a></th>
  </tr>
</thead>
<tbody>
  {% for bl in bls %}
  <tr>
    <td>{{bl.date}}</td>
    <td>{{bl.amount}}</td>
    <td>{{bl.reason}}</td>
    <td>{{bl.agent.user.first_name}}</td>
  </tr>
  {% endfor %}
</tbody>
</table>

</div>
{% endblock %}